<?php
// 应用程序入口
define ( 'HERE_DIR', basename ( dirname ( dirname ( __FILE__ ) ) ) . '/files' );
require dirname ( dirname ( __FILE__ ) ) . '/../../bootstrap.php';
if (PluginManager::enabled ( 'cn.usephp.filemgr',false )) {
	$dispatcher = new Dispatcher ();
	$action = rqst ( 'Ctlr', '' );
	$action = empty ( $action ) ? '' : $action . '/';
	$dispatcher->dispatch ( "/core/" . $action, false, 'files' );
} else {
	Response::begin ( "/core/files/" );
	Response::error ( 'Page Not Found', 404, true );
}
?>